import request from '@/utils/request'

// 查询手机号临时黑名单列表
export function listTempBlacklist(query) {
  return request({
    url: '/boss/TempBlacklist/list',
    method: 'get',
    params: query
  })
}

// 查询手机号临时黑名单详细
export function getTempBlacklist(id) {
  return request({
    url: '/boss/TempBlacklist/' + id,
    method: 'get'
  })
}

// 新增手机号临时黑名单
export function addTempBlacklist(data) {
  return request({
    url: '/boss/TempBlacklist',
    method: 'post',
    data: data
  })
}

// 修改手机号临时黑名单
export function updateTempBlacklist(data) {
  return request({
    url: '/boss/TempBlacklist',
    method: 'put',
    data: data
  })
}

// 删除手机号临时黑名单
export function delTempBlacklist(id) {
  return request({
    url: '/boss/TempBlacklist/' + id,
    method: 'delete'
  })
}
